﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.IO;
using Entity = Savico.Library.Entity;
using Business = Savico.Library.Business;


public partial class templates_client_usercontrols_image_activities : System.Web.UI.UserControl
{
    Entity.HinhAnh entityImage = new Savico.Library.Entity.HinhAnh();
    Business.HinhAnh businessImage = new Savico.Library.Business.HinhAnh();
    DataTable dtImage = new DataTable();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            entityImage.NgonNgu = Application["langue"].ToString();
            entityImage.IdChuDe = 2;
            if (entityImage.NgonNgu == "vi")
            {
                dtImage = businessImage.SelectTheoNgonNgu_ChuDe(entityImage);
            }
            if (entityImage.NgonNgu == "en")
            {
                dtImage = businessImage.SelectTheoNgonNgu_ChuDe(entityImage);
            }
            rptDanhSachHinhAnhTT.DataSource = dtImage;
            rptDanhSachHinhAnhTT.DataBind();
        }
    }    
}
